Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / INIndexedSet<T> Interface
Members


In This Topic
    INIndexedSet<T> Interface
    In This Topic
    Represents a finite set, with support for random access read at arbitrary indices.
    Object Model
    INIndexedSet<T> Interface
    Syntax
    'Declaration
     
    
    <System.Reflection.DefaultMemberAttribute("Item")>
    Public Interface INIndexedSet(Of T) 
       Inherits INContains(Of T), INCountable(Of T), INIterable(Of T), INReverseIterable(Of T), INSet(Of T) 
    'Usage
     
    
    Dim instance As INIndexedSet(Of T)
    [System.Reflection.DefaultMember("Item")]
    public interface INIndexedSet<T> : INContains<T>, INCountable<T>, INIterable<T>, INReverseIterable<T>, INSet<T>  
    Type Parameters
    T
    Remarks
    This interface extends its base INSet with the following operations:
    • Gets the object at a random index. INIndexedSet implementations that allow item substitution at random index should also implement INWritableArraySet.
    • This is derivative operation of Count and GetAt, exposed by the INReverseIterable interface.
    • This is a derivative operation of Count and GetAt, exposed by the IndexOf method of the interface. INIndexedSet implementations that allow duplicate entries, should also implement the INArrayMultiSet interface.

    An array set by itself is fixed in size, readonly, and allows no duplicate entires. Indexed sets that support item addtion/removal, writing at index or duplicate entries, should also implement other set interfaces.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also